package com.yu.xcx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

//    主键
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

//    手机号码
    private String phone;

//    用户的openId
    @TableField(value = "open_id")
    private String openId;

//    昵称，默认是随机字符
    @TableField(value = "nick_name")
    private String nickName;

//    用户头像
    @TableField(value = "se_key")
    private String sekey;

//   创建时间
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    //更新时间
    @TableField(value = "update_time")
    private LocalDateTime updateTime;
}
